﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SRD.Model.SRD.DAO;
using System.Data;
using SRD.Model.SRD.DTO;

namespace SRD.Model.SRD.BO
{
    public class StatusSubmissaoBO
    {
        private StatusSubmissaoDAO dao;

        public STATUS_SUBMISSAO findById(STATUS_SUBMISSAO statusSubmissao)
        {
            return new StatusSubmissaoDAO().findById(statusSubmissao);
        }

        public IQueryable findAll()
        {
            return new StatusSubmissaoDAO().findAll();
        }

        public IQueryable findByName(String nomestatusSubmissao)
        {
            return new StatusSubmissaoDAO().findByName(nomestatusSubmissao);
        }

        public String insert(STATUS_SUBMISSAO statusSubmissao)
        {
            dao = new StatusSubmissaoDAO();
            return dao.insert(statusSubmissao);
        }

        public String update(STATUS_SUBMISSAO statusSubmissao)
        {
            dao = new StatusSubmissaoDAO();
            return dao.update(statusSubmissao);
        }

        public String delete(STATUS_SUBMISSAO statusSubmissao)
        {
            dao = new StatusSubmissaoDAO();
            return dao.delete(statusSubmissao);
        }
    }
}
